<?php

    // think\Route::rule('demo1','edu/test/demo1');
    think\Route::rule('name','edu/test/name');
    think\Route::rule('number','edu/test/number');
  //直接路由
     think\Route::rule('test','app/Test@test');
    //动态路由
    // think\Route::rule( 'study/:name/:lesson','index/index/study','GET',['ext'=>'html'],['name'=>'\w{1,10}'],['lesson'=>');
     think\Route::rule('study/:name','index/index/study','GET',['ext'=>'html'],['name'=>'\w{1,10}']);
    //直接路由
    // think\Route::rule( 'study/:name','@index/index/study?lesson=php');
    //路由注册，配置数组
    // return[
    //     "study/:name/:lesson"=>['index/index/study',['method'=>'GET','ext'=>'html'],['name'=>'\w{1,10}'],['lesson'=>'\w{1,10}']]
    // ];
?>